/*会员库路由*/
import Layout from '@/layout'

const accountsRouter = [{
    path: '/accounts',
    component: Layout,
    redirect: '/accounts/accountLibrary',
    alwaysShow: true,
    name: 'accounts',
    meta: {
        title: '客户管理',
        roles: ['admin', 'editor'],
        icon: 'el-icon-arrow-right'
    },
    children: [
        /*会员库*/
        {
            path: 'accountLibrary',
            component: () => import('@/views/accounts/accountLibrary/index'),
            name: 'accountLibrary',
            meta: { title: '客户' }
        },
        // {
        //     path: 'accountAudit/:id/:title',
        //     component: () => import('@/views/accounts/accountLibrary/audit'),
        //     name: 'accountAudit',
        //     hidden: true,
        //     meta: { title: '审核' }
        // },
        // {
        //     path: 'accountCheck/:id/:title',
        //     component: () => import('@/views/accounts/accountLibrary/check'),
        //     name: 'accountCheck',
        //     hidden: true,
        //     meta: { title: '查看' }
        // },
        // {
        //     path: 'viewRedPacket/:id/:title',
        //     component: () => import('@/views/accounts/accountLibrary/viewRedPacket'),
        //     name: 'viewRedPacket',
        //     hidden: true,
        //     meta: { title: '查看红包' }
        // },
        // {
        //     path: 'viewCoupon/:id/:title',
        //     component: () => import('@/views/accounts/accountLibrary/viewCoupon'),
        //     name: 'viewCoupon',
        //     hidden: true,
        //     meta: { title: '查看优惠券' }
        // },
        // /*地址修改审核*/
        // {
        //     path: 'addressModify',
        //     component: () => import('@/views/accounts/addressModify/index'),
        //     name: 'addressModify',
        //     meta: { title: '地址修改审核' }
        // },
        // {
        //     path: 'procurementQualificationAudit',
        //     component: () => import('@/views/accounts/procurementQualificationAudit/index'),
        //     name: 'procurementQualificationAudit',
        //     meta: { title: '采购资质审核' }
        // },
        // {
        //     path: 'integralHistory',
        //     component: () => import('@/views/accounts/integralHistory/index'),
        //     name: 'integralHistory',
        //     meta: { title: '会员积分历史' }
        // },
    ]
}]

export default accountsRouter
